package com.ysstech.distributed_quartz.job;

import java.util.Date;

import org.springframework.stereotype.Controller;

import com.ysstech.distributed_quartz.utils.DateUtils;

/**
 * 具体的业务类
 * @author Administrator
 *
 */
@Controller
public class ClusterQuartz
{
    public void printUserInfo()
    {
        System.out.println("***      start " + DateUtils.format(new Date()) + "    *************");

        System.out.println("*");
        System.out.println("*        current username is " + System.getProperty("user.name"));
        System.out.println("*        current os name is " + System.getProperty("os.name"));
        System.out.println("*");

        System.out.println("*********current user information end******************");
    }
}

